﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F401_Quan_ly_bai_test_va_cau.aspx.cs" Inherits="DanhMuc_F401_Quan_ly_bai_test_va_cau" %>

<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <script src="../ckeditor/_Samples/ckeditor/config.js" type="text/javascript"></script>
    <script src="../ckeditor/_Samples/ckeditor/ckeditor.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
        <tr>
            <td class="cssPageTitleBG" colspan="3">
                <asp:label id="lblUser" runat="server" CssClass="cssPageTitle" 
                Text="Danh sách bài test"/>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:label id="m_lbl_mess" runat="server" CssClass="cssManField" />
            </td>
        </tr>
   
    
    </tr>
	    <tr>
            <td align="right" style="width:15%;">
                <asp:label id="Label4" CssClass="cssManField" runat="server" 
                Text="Tên bài test"/>
            </td>
            <td style="width:30%;">
                <asp:textbox id="m_txt_ten_bai_test" CssClass="cssTextBox"  runat="server" 
                MaxLength="64" Width="96%" />
            </td>
            <td style="width:5%;">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width:15%;">
                <asp:label id="lblFullName" CssClass="cssManField" runat="server" 
                Text="STT bài test" />
            </td>
            <td style="width:30%;">
                <asp:textbox id="m_txt_stt" CssClass="cssTextBox"  runat="server" 
                MaxLength="64" Width="96%" />
            </td>
            <td style="width:5%;">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
			    &nbsp;</td>
            <td valign="top" colspan="2">
                <asp:HiddenField ID="m_hdf_id_dm_bai_test" runat="server" Visible="False" />
                <asp:HiddenField ID="m_hdf_trang_thai_bai" runat="server" Visible="False" />
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center" class="style1">
                <asp:button id="m_cmd_tao_moi" accessKey="c" CssClass="cssButton" 
                runat="server" Width="98px" height ="24px" Text="Lưu bài" 
                    onclick="m_cmd_tao_moi_Click"  />
                &nbsp;
			    &nbsp;
			    <asp:button id="btnCancel" accessKey="r" CssClass="cssButton" runat="server" 
                Width="98px" height ="24px" Text="Xóa trắng" onclick="btnCancel_Click" />
            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="3">
                <asp:label id="Label11" runat="server" CssClass="cssPageTitle" 
                Text="Danh sách bài test"/>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:label id="m_lbl_thong_bao" Visible="false" runat="server" CssClass="cssManField" />
            </td>
            <td >
		        &nbsp;</td>
        </tr>
            </table>
    <div align="center">
    <asp:GridView ID="m_grv_dm_bai_test" runat="server" AutoGenerateColumns="False" 
                Width="100%" DataKeyNames="ID" 
                onrowdeleting="m_grv_dm_bai_test_RowDeleting" 
                onselectedindexchanging="m_grv_dm_bai_test_SelectedIndexChanging" 
                CellPadding="4" ForeColor="#333333" CssClass="cssGrid" 
            AllowPaging="True" onpageindexchanging="m_grv_dm_bai_test_PageIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="STT" HeaderText="STT">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BAI_TEST" ItemStyle-HorizontalAlign="Center" 
                        HeaderText="Tên bài test" >
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                        </asp:BoundField>
                        <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" 
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>
                        <asp:CommandField SelectText="Sửa" ShowSelectButton="True" 
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" 
                    Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>
                </asp:GridView>
    </div>
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
        <tr>
            <td class="cssPageTitleBG" colspan="3">
                <asp:label id="Label1" runat="server" CssClass="cssPageTitle" 
                Text="Danh sách câu"/>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:label id="m_lbl_mess02" runat="server" CssClass="cssManField" />
            </td>
        </tr>
   
    
    </tr>
	    <tr>
            <td align="right" style="width:15%;">
                <asp:label id="Label3" CssClass="cssManField" runat="server" 
                Text="Bài test"/>
            </td>
            <td style="width:30%;"><asp:DropDownList runat="server" ID="m_cbo_bai_test" 
                    CssClass="cssDorpdownlist" Width="70.5%"></asp:DropDownList> </td>
            <td style="width:5%;">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width:15%;">
                <asp:label id="Label5" CssClass="cssManField" runat="server" 
                Text="STT câu" />
            </td>
            <td style="width:30%;">
                <asp:textbox id="m_txt_stt_cau" CssClass="cssTextBox"  runat="server" 
                MaxLength="250" Width="70%" Height="21px" />
            </td>
            <td style="width:5%;">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:label id="Label12" CssClass="cssManField" runat="server" 
                Text="Nội dung câu" />
            </td>
            <td valign="top" colspan="2">
                <CKEditor:CKEditorControl ID="m_cke_noi_dung" runat="server" ResizeEnabled="False" 
                    Width="650px" ClientIDMode="Static" Height="75px" Toolbar="Basic" ToolbarBasic="Bold|Italic|Underline|Strike|
Image|Flash|
TextColor|BGColor
Link|Unlink|Anchor"></CKEditor:CKEditorControl>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:label id="Label13" CssClass="cssManField" runat="server" 
                Text="Giải thích chung" />
            </td>
            <td valign="top" colspan="2">
                <CKEditor:CKEditorControl ID="m_cke_giai_thich" runat="server" ResizeEnabled="False" 
                    Width="650px" ClientIDMode="Static" Height="75px" Toolbar="Basic" ToolbarBasic="Bold|Italic|Underline|Strike|
Image|Flash|
TextColor|BGColor"></CKEditor:CKEditorControl>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:label id="Label14" CssClass="cssManField" runat="server" 
                Text="Dịch nghĩa" />
            </td>
            <td valign="top" colspan="2">
                <CKEditor:CKEditorControl ID="m_cke_dich_nghia" runat="server" ResizeEnabled="False" 
                    Width="650px" ClientIDMode="Static" Height="75px" Toolbar="Basic" ToolbarBasic="Bold|Italic|Underline|Strike|
Image|Flash|
TextColor|BGColor"></CKEditor:CKEditorControl>
            </td>
        </tr>
        <tr>
            <td align="right">
			    &nbsp;</td>
            <td valign="top" colspan="2">
                <asp:HiddenField ID="m_hdf_id_dm_cau" runat="server" Visible="False" />
                <asp:HiddenField ID="m_hdf_trang_thai" runat="server" Visible="False" />
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center" class="style1">
                <asp:button id="m_cmd_insert" accessKey="c" CssClass="cssButton" 
                runat="server" Width="98px" height ="24px" Text="Lưu câu" 
                    onclick="m_cmd_insert_Click"  />
                &nbsp;
			    <asp:button id="m_cmd_clear" accessKey="r" CssClass="cssButton" runat="server" 
                Width="98px" height ="24px" Text="Xóa trắng" onclick="m_cmd_clear_Click" />
            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="3">
                <asp:label id="Label6" runat="server" CssClass="cssPageTitle" 
                Text="Danh sách câu"/>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label15" runat="server" CssClass="cssManField" 
                    Text="Chọn bài test" />
            </td>
            <td colspan="2" >
		        <asp:DropDownList ID="m_cbo_bai_test_tk" runat="server" 
                    CssClass="cssDorpdownlist" Width="70.5%">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label16" runat="server" CssClass="cssManField" 
                    Text="Nhập số thứ tự câu" />
            </td>
            <td colspan="2">
                <asp:TextBox ID="m_txt_stt_cau_tk" runat="server" CssClass="cssTextBox" 
                    Height="21px" MaxLength="250" Width="70%" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:Button ID="m_cmd_search" runat="server" CssClass="cssButton" height="24px" 
                    onclick="m_cmd_search_Click" Text="Tìm câu" Width="98px" />
            </td>
        </tr>
        <tr>
            <td align="left">
                &nbsp;</td>
            <td colspan="2">
                &nbsp;</td>
        </tr>
    </table>
    <div align="center">
        <asp:GridView ID="m_grv_dm_cau" runat="server" AutoGenerateColumns="False" 
                Width="100%" DataKeyNames="ID" 
                CellPadding="4" ForeColor="#333333" CssClass="cssGrid" AllowPaging="True" 
                    onrowdeleting="m_grv_dm_cau_RowDeleting" 
                    onselectedindexchanging="m_grv_dm_cau_SelectedIndexChanging" 
            onpageindexchanging="m_grv_dm_cau_PageIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="STT" HeaderText="STT">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BAI_TEST" ItemStyle-HorizontalAlign="Center" 
                        HeaderText="Bài test" >
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="NOI_DUNG_CAU" HeaderText="Nội dung câu" 
                            HtmlEncode="False" HtmlEncodeFormatString="False">
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CHU_THICH_CHUNG" HeaderText="Chú thích chung" 
                            HtmlEncode="False" HtmlEncodeFormatString="False">
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DICH_NGHIA" HeaderText="Dịch nghĩa" 
                            HtmlEncode="False" HtmlEncodeFormatString="False">
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" 
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>
                        <asp:CommandField SelectText="Sửa" ShowSelectButton="True" 
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" 
                    Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>
                </asp:GridView>
    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>

